var frisby = require('frisby');

frisby.create('获取飞行员信息接口')
    .post('http://192.168.247.88:9090/hub/pilot/getHrOrgAndEmp', {
        'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
        'username':'admin'// json-value=[{"book-uuid":"手册uuid","version":" 下载手册的版本号"},
      })

    // .inspectJSON()
    .expectJSONTypes({
        'result': {
           "value":String,//"success",
   	       "name":String,//"李恒文(Henry)",
           "id":String,//"1000016122",
           "account":String,//"hwen_li",
           "nationality":String,//"中国",
           "info":String//"获取飞行员信息成功"
         }})

  .expectStatus(200)
  .toss();

  frisby.create('接口未查询到该用户')
    .post('http://192.168.247.88:9090/hub/pilot/getHrOrgAndEmp', {
        'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
        'username':'admin'// json-value=[{"book-uuid":"手册uuid","version":" 下载手册的版本号"},
      })


      // .inspectJSON()
    .expectJSONTypes({
      'result': {
        'value':'error',
        'info':'接口未查询到该用户'
    }})
     .expectStatus(200)
.toss();
